Screenshot Generating Method, Control Method, and Electronic Device

ABSTRACT

Embodiments of this application are applied to an electronic device including a display and a camera, where a through hole is provided in the display, and the camera is embedded in the through hole. The electronic device displays an interface of the first application program; receives a screen capturing operation performed by the user; draws a screenshot of the interface of the first application program in response to the screen capturing operation, and automatically adds an image corresponding to the first application program to a position that is in the screenshot of the interface of the first application program and that corresponds to the through hole; and displays the screenshot that includes the image corresponding to the first application program.

TECHNICAL FIELD

This application relates to the field of electronic devices, and inparticular, to a screenshot generating method, a control method, and anelectronic device.

BACKGROUND

Nowadays, the mobile phone has become a necessary communications tool inpeople's daily life and work. By using the mobile phone, a user may notonly communicate with another user, but also browse or process variousinformation. In a use process, for interesting content displayed in themobile phone, for example, if the user is interested in content in aninterface of an application program displayed in the mobile phone, theuser usually uses a screen capturing function to store the content in aform of a screenshot, for ease of subsequent use. However, a volume ofinformation included in the screenshot is usually very limited,resulting in low intelligence of human-computer interaction.

SUMMARY

Embodiments of this application provide a screenshot generating method,a control method, and an electronic device, so that problems of alimited volume of information included in a screenshot and lowintelligence of human-computer interaction are resolved.

To achieve the foregoing objective, the following technical solutionsare used in the embodiments of this application.

According to a first aspect of the embodiments of this application, ascreenshot generating method is provided. The method may be applied toan electronic device, where the electronic device may include a displayand a camera, a through hole is provided in the display, and the camerais embedded in the through hole. The method may include: displaying, bythe electronic device, a home screen on the display, where the homescreen may include an icon of a first application program; receiving, bythe electronic device, an operation performed by a user on the icon ofthe first application program; displaying, by the electronic device, aninterface of the first application program on the display, in responseto the operation performed by the user on the icon of the firstapplication program; receiving, by the electronic device, a screencapturing operation performed by the user; drawing, by the electronicdevice, a screenshot of the interface of the first application programin response to the screen capturing operation, and automatically addingan image corresponding to the first application program to a positionthat is in the screenshot of the interface of the first applicationprogram and that corresponds to the through hole; and displaying, by theelectronic device, the screenshot that includes the image correspondingto the first application program.

According to the screenshot generating method provided in theembodiments of this application, after receiving the screen capturingoperation performed by the user, the electronic device automaticallyadds an image corresponding to a related application program to theposition that corresponds to the through hole provided in the displayand that is in the drawn screenshot. The user who views the screenshotcan obtain, without a related context, more current system informationwhen capturing the screen, for example, an application program run whenthe screen is captured. A volume of information included in thescreenshot is increased, so that interaction efficiency is improved, andintelligence of human-computer interaction is increased.

With reference to the first aspect, in a possible implementation, theforegoing home screen may further include an icon of a secondapplication program. The screenshot generating method may furtherinclude: receiving, by the electronic device, an operation performed bythe user on the icon of the second application program; displaying, bythe electronic device, an interface of the second application program onthe display; in response to the operation performed by the user on theicon of the second application program; receiving, by the electronicdevice, the screen capturing operation performed by the user; drawing,by the electronic device, a screenshot of the interface of the secondapplication program in response to the screen capturing operation, andautomatically adding an image corresponding to the second applicationprogram to a position that is in the screenshot of the interface of thesecond application program and that corresponds to the through hole; anddisplaying, by the electronic device, the screenshot that includes theimage corresponding to the second application program. In this way,images corresponding to different application programs are added to thedrawn screenshots based on different application programs run in thesystem when the screen is captured, so that the screenshots can betterreflect current information of the system when the screen is captured,and intelligence of human-computer interaction is further increased.

According to a second aspect of the embodiments of this application, acontrol method is provided. The control method may be applied to anelectronic device, where the electronic device may include a display anda camera, a through hole is provided in the display, and the camera isembedded in the through hole. The method may include: displaying, by theelectronic device, a first interface on the display, where the firstinterface may include a first interface element, and a display positionof the first interface element encircles the through hole; receiving, bythe electronic device, a first operation performed by a user;displaying, by the electronic device, a second interface on the displayin response to the first operation, where the second interface includesthe first interface element, and the second interface is an interface ofa first application program; receiving, by the electronic device, asecond operation of enabling, by the user, a first mode of the firstapplication program; and enabling, by the electronic device, the firstmode in response to the second operation, displaying a second interfaceelement on the second interface, and skipping displaying the firstinterface element, where the second interface element includes firstprompt information used to prompt that the first mode is enabled, adisplay position of the second interface element encircles the throughhole, and a display area of the second interface element is greater thana display area of the first interface element.

According to the control method provided in the embodiments of thisapplication, an interface element included in an interface displayed onthe display is associated with hardware (for example, the camera)disposed in the through hole of the display, so that the abruptness ofthe hardware that is disposed in the through hole of the display andthat is in the interface displayed on the display is alleviated. Inaddition, the electronic device can change, based on a current set modeof the first application program, the interface element associated withthe camera, and the changed interface element can prompt the currentstatus of the electronic device to the user. In a manner of prompting,beside the camera, the current status of the electronic device, theinterface element can better prompt the current status of the electronicdevice to the user, and prompting efficiency is improved, so that theuser learns of the current status of the electronic device moreintuitively and quickly, and the intelligence of human-computerinteraction is increased.

With reference to the second aspect, in a possible implementation, theforegoing first application program may be Camera in the electronicdevice; and the first mode may be a photographing mode, a videorecording mode, or a scene mode of Camera. In this way, when the firstapplication program is Camera, because prompted content is related to acurrent status of the hardware camera, a manner of performing promptingbeside the camera can further improve prompting efficiency, so that theuser learns of the current working status of the camera more intuitivelyand quickly, and the intelligence of human-computer interaction isfurther increased, thereby improving use experience of the user.

With reference to the second aspect or the foregoing possibleimplementation, in another possible implementation, the displaying asecond interface element on the second interface, and skippingdisplaying the first interface element may specifically include:changing, by the electronic device based on a scene transition effect,the first interface element displayed in the second interface to thesecond interface element. The scene transition effect may bepre-defined, and the electronic device may also provide an entry foruser setting. In this way, the interface element can better prompt acurrent status of the electronic device to the user, thereby furtherimproving user experience.

With reference to the second aspect or the foregoing possibleimplementations, in another possible implementation, the control methodmay further include: receiving, by the electronic device, a thirdoperation of making, by the user, a phone call; displaying, by theelectronic device, a call interface on the display in response to thethird operation, where the call interface may include the firstinterface element; receiving, by the electronic device, a fourthoperation performed by the user; and displaying, by the electronicdevice, a third interface on the display in response to the fourthoperation, where the third interface is different from the callinterface, the third interface may include a third interface element,the third interface element includes second prompt information, thesecond prompt information may be used to prompt that the electronicdevice is currently in a call or prompt call duration, a displayposition of the third interface element encircles the through holeprovided in the display, and a display area of the third interfaceelement may be greater than the display area of the first interfaceelement. In this way, the electronic device prompts, by using theinterface element associated with the camera, that the electronic deviceis currently in a call, thereby further improving prompting efficiencyand further improving intelligence of human-computer interaction.

With reference to the second aspect or the foregoing possibleimplementations, in another possible implementation, the third interfacemay be a home screen or an interface of an application program; and thethird interface element is included in a status bar of the thirdinterface.

With reference to the second aspect or the foregoing possibleimplementations, in another possible implementation, the first interfaceelement and the second interface element are included in a status bar.

With reference to the second aspect or the foregoing possibleimplementations, in another possible implementation, after thedisplaying, by the electronic device, a first interface on the display,the control method may further include: receiving, by the electronicdevice, a screen capturing operation performed by the user; drawing, bythe electronic device, a screenshot of the first interface in responseto the screen capturing operation, and automatically adding a watermarkto a position that is in the screenshot of the first interface and thatcorresponds to the through hole; and displaying, by the electronicdevice, the screenshot that includes the watermark. In this way, byautomatically adding the watermark to the position that corresponds tothe through hole provided in the display and that is in the drawnscreenshot, intelligence of human-computer interaction is improved.

With reference to the second aspect or the foregoing possibleimplementations, in another possible implementation, after the enabling,by the electronic device, the first mode in response to the secondoperation, displaying a second interlace element on the secondinterface, and skipping displaying the first interface element, themethod may further include: receiving, by the electronic device, thescreen capturing operation performed by the user; drawing, by theelectronic device, a screenshot of the second interface in response tothe screen capturing operation, and automatically adding an imagecorresponding to the first application program to a position that is inthe screenshot of the second interface and that corresponds to thethrough hole; and displaying, by the electronic device, the screenshotthat includes the image corresponding to the first application program.In this way, the image corresponding to a related application program isautomatically added to the position that corresponds to the through holeprovided in the display and that is in the drawn screenshot. The userwho view s the screenshot can obtain, without a related context, morecurrent system information when the screen is captured, for example, anapplication program run when the screen is captured. A volume ofinformation included in the screenshot is increased, so that interactionefficiency is improved, and intelligence of human-computer interactionis increased.

According to a third aspect of the embodiments of this application, acontrol method is provided, applied to an electronic device, where theelectronic device may include a display and a camera, a through hole isprovided in the display, and the camera is embedded in the through hole.The method may include: displaying, by the electronic device, a firstinterface on the display, where the first interface includes a firstinterface element, and a display position of the first interface elementmay encircle the through hole provided in the display; receiving, by theelectronic device, a first operation of making, by a user, a phone call;displaying, by the electronic device, a call interface on the display inresponse to live first operation, where the call interface may includethe first interface element; receiving, by the electronic device, asecond operation performed by the user; and displaying, by theelectronic device on the display, a second interface different from thecall interface in response to the second operation, where the secondinterface may include a second interface element, the second interfaceelement includes prompt information, the prompt information may be usedto prompt that the electronic device is currently in a call or promptcall duration, a display position of the second interface element mayencircle the through hole provided in the display, and a display area ofthe second interface element is greater than a display area of the firstinterface element.

According to the control method provided in the embodiments of thisapplication, an interface element included in an interface displayed onthe display is associated with hardware (for example, the camera)disposed in the through hole of the display, so that the abruptness ofthe hardware that is disposed in the through hole of the display andthat is in the interface displayed on the display is alleviated. Inaddition, the electronic device can change the interface elementassociated with the camera, and the changed interface element can beused to prompt the user that the electronic device is currently in acall. A manner of performing prompting beside the camera can improveprompting efficiency, so that the user more intuitively and quicklylearns that the electronic device is currently in a call, theintelligence of human-computer interaction is increased, and useexperience of the user is improved.

With reference to the third aspect, in a possible implementation, thesecond interface is a home screen or an interface of an applicationprogram; and the first interface element and the second interfaceelement are included in a status bar.

With reference to the third aspect or the foregoing possibleimplementation, in another possible implementation, after thedisplaying, by the electronic device, a second interface on the displayin response to the second operation, the method may further include:receiving, by the electronic device, a screen capturing operationperformed by the user; drawing, by the electronic device, a screenshotof the second interface in response to the screen capturing operation,and automatically adding an image corresponding to Phone to a positionthat is in the screenshot of the second interface and that correspondsto the through hole; and displaying, by the electronic device, thescreenshot that includes the image corresponding to Phone. In this way,the image corresponding to Phone is automatically added to the positionthat corresponds to the through hole provided in the display and that isin the drawn screenshot. The user who views the screenshot can obtain,without a related context, more current system information when thescreen is captured, for example, a call is made when the screen iscaptured. A volume of information included in the screenshot isincreased, so that interaction efficiency is improved, and intelligenceof human-computer interaction is increased.

According to a fourth aspect of the embodiments of this application, anelectronic device is provided, where the electronic device may include adisplay and a camera, a through hole is provided in the display, and thecamera is embedded in the through hole. The electronic device mayinclude a display unit, an input unit, and a processing unit; thedisplay unit is configured to display a home screen on the display,where the home screen includes an icon of a first application program;the input unit is configured to receive an operation performed by a useron the icon of the first application program; the display unit isfurther configured to display an interface of the first applicationprogram on the display in response to the operation performed by theuser on the icon of the first application program; the input unit isfurther configured to receive a screen capturing operation performed bythe user; the processing unit is configured to: draw a screenshot of theinterface of the first application program in response to the screencapturing operation, and automatically add an image corresponding to thefirst application program to a position that is in the screenshot of theinterface of the first application program and that corresponds to thethrough hole; and the display unit is further configured to display thescreenshot that includes the image corresponding to the firstapplication program.

With reference to the fourth aspect, in a possible implementation, theforegoing home screen may further include an icon of a secondapplication program; the input unit is further configured to receive anoperation performed by the user on the icon of the second applicationprogram; the display unit is further configured to display an interfaceof the second application program on the display in response to theoperation performed by the user on the icon of the second applicationprogram; the input unit is further configured to receive the screencapturing operation performed by the user; the processing unit isfurther configured to: draw a screenshot of the interface of the secondapplication program in response to the screen capturing operation, andautomatically add an image corresponding to the second applicationprogram to a position that is in the screenshot of the interface of thesecond application program and that corresponds to the through hole; andthe display unit is configured to display the screenshot that includesthe image corresponding to the second application program.

According to a fifth aspect of the embodiments of this application, anelectronic device is provided, where the electronic device may include adisplay and a camera, a through hole is provided in the display, and thecamera is embedded in the through hole. The electronic device mayinclude a display unit and an input unit; the display unit is configuredto display a first interface on the display, where the first interfaceincludes a first interface element, and a display position of the firstinterface element encircles the through hole; the input unit isconfigured to receive a first operation performed by a user; the displayunit is further configured to display a second interface on the displayin response to the first operation, where the second interface includesthe first interface element, and the second interface is an interface ofa first application program; the input unit is further configured toreceive a second operation of enabling, by the user, a first mode of thefirst application program; and the display unit is further configuredto: display a second interface element on the second interface and skipdisplaying the first interface element in response to the secondoperation, where the second interface element includes first promptinformation used to prompt that the first mode is enabled, a displayposition of the second interface element encircles the through bole, anda display area of the second interface element is greater than a displayarea of the first interface element.

With reference to the fifth aspect, in a possible implementation, thefirst application program may be Camera; and the first mode is aphotographing mode, a video recording mode, or a scene mode of Camera.

With reference to the fifth aspect or the foregoing possibleimplementations, in another possible implementation, the display unit isspecifically configured to change the first interface element displayedin the second interface to the second interface element based on a scenetransition effect.

With reference to the fifth aspect or the foregoing possibleimplementations, in another possible implementation, the input unit isfurther configured to receive a third operation of making, by the user,a phone call; the display unit is further configured to display a callinterface on the display in response to the third operation, where thecall interface includes the first interface element; the input unit isfurther configured to receive a fourth operation performed by the user;and the display unit is further configured to display a third interlaceon the display in response to the fourth operation, where the thirdinterface is different from the call interface, the third interfaceincludes a third interface element, the third interface element includessecond prompt information used to prompt that the electronic device iscurrently in a call or prompt call duration, a display position of thethird interface element encircles the through hole, and a display areaof the third interface element is greater than the display area of thefirst interface element.

With reference to the fifth aspect or the foregoing possibleimplementations, in another possible implementation, the third interfacemay be a home screen or an interface of an application program; and thethird interface element may be included in a status bar of the thirdinterface.

With reference to the fifth aspect or the foregoing possibleimplementations, in another possible implementation, the first interfaceelement and the second interlace element may be included in a statusbar.

With reference to the fifth aspect or the foregoing possibleimplementations, in another possible implementation, the electronicdevice may further include a processing unit; the input unit is furtherconfigured to receive a screen capturing operation performed by theuser; the processing unit is configured to: draw a screenshot of thefirst interface in response to the screen capturing operation, andautomatically add a watermark to a position that is in the screenshot ofthe first interface and that corresponds to the through hole; and thedisplay unit is further configured to display the screenshot thatincludes the watermark.

With reference to the fifth aspect or the foregoing possibleimplementations, in another possible implementation, the electronicdevice may further include a processing unit; the input unit is furtherconfigured to receive the screen capturing operation performed by theuser; the processing unit is configured to: draw a screenshot of thesecond interface in response to the screen capturing operation, andautomatically add an image corresponding to the first applicationprogram to a position that is in the screenshot of the second interfaceand that corresponds to the through hole; and the display unit isconfigured to display the screenshot that includes the imagecorresponding to the first application program.

According to a sixth aspect of the embodiments of this application, anelectronic device is provided, where the electronic device may include adisplay and a camera, a through hole is provided in the display, and thecamera is embedded in the through hole. The electronic device mayinclude a display unit and an input unit; the display unit is configuredto display a first interface on the display, where the first interfaceincludes a first interface element, and a display position of the firstinterface element encircles the through hole; the input unit isconfigured to receive a first operation of making, by a user, a phonecall; the display unit is further configured to display a call interfaceon the display in response to the first operation, where the callinterface includes the first interface element; the input unit isfurther configured to receive a second operation performed by the user;and the display unit is further configured to display a second interfaceon the display in response to the second operation, where the secondinterface is different from the call interface, the second interfaceincludes a second interface element, the second interface elementincludes prompt information used to prompt that the electronic device iscurrently in a call or prompt call duration, a display position of thesecond interface element encircles the through hole, and a display areaof the second interface element is greater than a display area of thefirst interface element.

With reference to the sixth aspect, in a possible implementation, thesecond interface may be a home screen or an interface of an applicationprogram; and the first interface element and the second interfaceelement may be included in a status bar.

With reference to the sixth aspect or the foregoing possibleimplementation, in another possible implementation, the electronicdevice may further include a processing unit; the input unit is furtherconfigured to receive a screen capturing operation performed by theuser; the processing unit is configured to: draw a screenshot of thesecond interface in response to the screen capturing operation, andautomatically add an image corresponding to Phone to a position that isin the screenshot of the second interface and that corresponds to thethrough hole; and the display unit is further configured to display thescreenshot that includes the image corresponding to Phone.

According to a seventh aspect of the embodiments of this application, anelectronic device is provided, where the electronic device may includeone or more processors, a memory, a display; a camera, and one or morecomputer programs; a through hole is provided in the display; the camerais embedded in the through hole; the one or more processors, the memory,the display, and the camera are connected by using one or morecommunications buses; the one or more computer programs are stored inthe memory and are configured to be executed by the one or moreprocessors; and the one or more computer programs include instructions,and the instructions may be configured to perform the screenshotgenerating method in the first aspect or the possible implementations ofthe first aspect, or the instructions may be configured to perform thecontrol method according to any one of the second aspect or the possibleimplementations of the second aspect, or the instructions may beconfigured to perform the control method according to any one of thethird aspect or the possible implementations of the third aspect.

According to an eighth aspect of the embodiments of this application, acomputer storage medium is provided, where the computer storage mediummay include a computer instruction, and when the instruction is run onan electronic device, the electronic device is enabled to perform thescreenshot generating method in the first aspect or the possibleimplementations of the first aspect, or the electronic device is enabledto perform the control method according to any one of the second aspector the possible implementations of the second aspect, or the electronicdevice is enabled to perform the control method according to any one ofthe third aspect or the possible implementations of the third aspect.

According to a ninth aspect of the embodiments of this application, acomputer program product is provided, where when the computer programproduct is run on a computer, the computer is enabled to perform thescreenshot generating method in the first aspect or the possibleimplementations of the first aspect, or the computer is enabled toperform the control method according to any one of the second aspect orthe possible implementations of the second aspect, or the computer isenabled to perform the control method according to any one of the thirdaspect or the possible implementations of the third aspect.

According to a tenth aspect of the embodiments of this application, anapparatus is provided. The apparatus has a function of implementing abehavior of an electronic device in the method in the first aspect, orthe second aspect, or the third aspect. The function may be implementedby using hardware, or may be implemented by using hardware executingcorresponding software. The hardware or the software includes one ormore modules corresponding to the foregoing function.

It should be understood that, in this application, descriptions abouttechnical features, technical solutions, beneficial effects, or similarwords do not imply that all characteristics and advantages can beimplemented in any single embodiment. On the contrary, it can beunderstood that the descriptions about features or beneficial effectsmean that at least one embodiment includes particular technicalfeatures, technical solutions, or beneficial effects. Therefore, in thespecification, the descriptions about technical features, technicalsolutions, or beneficial effects are not necessarily included in a sameembodiment. In addition, technical features, technical solutions, andbeneficial effects described in the embodiments may be further combinedin any appropriate manner. Persons skilled in the art understand that,an embodiment can be implemented without one or more particulartechnical features, technical solutions, or beneficial effects in aparticular embodiment. In another embodiment, an additional technicalfeature and beneficial effect can be identified in a particularembodiment that does not reflect all embodiments.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of some graphical user interfacesdisplayed on an electronic device according to an embodiment of thisapplication;

FIG. 2 is a schematic structural diagram of an electronic device 200according to an embodiment of this application;

FIG. 3 is a block diagram of a software structure of an electronicdevice 200 according to an embodiment of this application;

FIG. 4 is a schematic flowchart of a control method according to anembodiment of this application;

FIG. 5(a) and FIG. 5(b) are schematic diagrams of some other graphicaluser interfaces displayed on an electronic device according to anembodiment of this application;

FIG. 6(a) and FIG. 6(b) are schematic diagrams of still some othergraphical user interfaces displayed on an electronic device according toan embodiment of this application;

FIG. 7(a) and FIG. 7(b) are schematic diagrams of still some othergraphical user interfaces displayed on an electronic device according toan embodiment of this application;

FIG. 8 is a schematic flowchart of another control method according toan embodiment of this application;

FIG. 9(a) and FIG. 9(b) are schematic diagrams of still some othergraphical user interfaces displayed on an electronic device according toan embodiment of this application;

FIG. 10(a) and FIG. 10(b) are schematic diagrams of still some othergraphical user interfaces displayed on an electronic device according toan embodiment of this application;

FIG. 11 is a schematic flowchart of a screenshot generating methodaccording to an embodiment of this application;

FIG. 12(a), FIG. 12(b), FIG. 12(c), FIG. 12(d), and FIG. 12(e) areschematic diagrams of still some other graphical user interfacesdisplayed on an electronic device according to an embodiment of thisapplication:

FIG. 13(a) and FIG. 13(b) are schematic diagrams of still some othergraphical user interfaces displayed on an electronic device according toan embodiment of this application;

FIG. 14(a) and FIG. 14(b) are schematic diagrams is a schematic diagramof still some other graphical user interfaces displayed on an electronicdevice according to an embodiment of this application;

FIG. 15 is a schematic composition diagram of an electronic deviceaccording to an embodiment of this application; and

FIG. 16 is a schematic composition diagram of another electronic deviceaccording to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following terms “first” and “second” are merely intended for apurpose of description, and shall not be understood as an indication orimplication of relative importance or implicit indication of the numberof indicated technical features. Therefore, a feature limited by “first”or “second” may explicitly or implicitly include one or more features.In the descriptions of embodiments of this application, the word such as“exemplary” or “for example” is used to represent giving an example, anillustration, or a description. Any embodiment or design schemedescribed as an “exemplary” or “for example” in the embodiments of thisapplication should not be explained as being more preferred or havingmore advantages than another embodiment or design scheme. Exactly, useof the word “exemplary” or “example” or the like is intended to presenta relative concept in a specific manner.

Currently, a camera has become a tool of standard configuration in amobile phone. For ease of taking a settle by a user, a camera is usuallydisposed on a front end of the mobile phone, and the camera may bereferred to as a front-facing camera. Usually, the front-facing camerais disposed within an upper bezel of a display of the mobile phone. Toincrease a size of the display of the mobile phone without changing asize of the mobile phone, as shown in FIG. 1, a hole may be dug on adisplay 101 (for example, on an upper left corner) of a mobile phone, toform a through hole, so that a camera 102 can be embedded in the throughhole.

However, after being embedded in the through hole of the display, thecamera looks abrupt in an interface displayed on the display. Inaddition, the interface displayed on the display of the mobile phoneusually includes many interface elements to satisfy the use's variousinteraction requirements. However, interface elements included in acurrent interface cannot prompt a current status of the mobile phone tothe user effectively.

An embodiment of this application provides a control method. The methodmay be applied to an electronic device that includes a camera and adisplay, where the display is provided with a through hole, and thecamera is embedded in the through hole. In the method provided in thisembodiment of this application, an interface element included in aninterface displayed on the display is associated with the camera,thereby alleviating the abruptness of the camera in the interfacedisplayed on the display. Moreover, in a manner in which the interfaceelement associated with the camera is changed based on the currentstatus of the electronic device, thereby prompting, beside the camera,the current status of the electronic device, the interface element canbetter prompt the current status of the electronic device to the user,so that prompting efficiency is improved, the user learns of the currentstatus of the electronic device more intuitively and quickly, and theintelligence of human-computer interaction is increased.

In addition, the user usually saves interesting content in a form of ascreenshot, and a volume of information included therein is limited. Anembodiment of this application further provides a screenshot generatingmethod. After receiving a screen capturing operation performed by theuser, the electronic device automatically adds an image corresponding toa related application program to a position that is in the drawnscreenshot and that corresponds to the through hole provided in thedisplay. In this way, the user who views the screenshot can obtain,without a related context, more current system information when thescreen is captured, for example, an application program run when thescreen is captured. A volume of information included in the screenshotis increased, so that interaction efficiency is improved, andintelligence of human-computer interaction is increased.

It should be noted that, the electronic device in the embodiments ofthis application may be a mobile phone, a tablet computer, a desktop,laptop, or handheld computer, a notebook computer, an ultra-mobilepersonal computer (Ultra-mobile Personal Computer, UMPC), a netbook, acellular phone, a personal digital assistant (Personal DigitalAssistant, PDA), a wearable device, or another device. A specific formof the device is not particularly limited in the embodiments of thisapplication.

FIG. 2 is a schematic structural diagram of an electronic device 200.

The electronic device 200 may include a processor 210, an externalmemory interface 220, an internal memory interface 221, a universalserial bus (universal serial bus. USB) interface 230, a chargemanagement module 240, a power management module 241, a battery 242, anantenna 1, an antenna 2, a mobile communications module 250, a wirelesscommunications module 260, an audio module 270, a speaker 270A, areceiver 270B, a microphone 270C, a headset jack 270D, a sensor module280, a key 290, a motor 291, an indicator 292, a camera 293, a display294, a subscriber identity module (subscriber identification module,SIM) card interface 295, and the like. The sensor module 280 may includea pressure sensor 280A, a gyroscope sensor 280B, a barometric pressuresensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, adistance sensor 280F, an optical proximity sensor 280G, a fingerprintsensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambientlight sensor 280L, a bone conduction sensor 280M, and the like.

It may be understood that, the schematic structure provided in theembodiments of this application does not constitute specific limitationto the electronic device 200. In some other embodiments, the electronicdevice 200 may include more or fewer components than those shown in thefigure, or some components may be combined, or some components may besplit, or a different component deployment may be used. The componentsshown in the figure may be implemented by hardware, software, or acombination of hardware and software.

The processor 210 may include one or more processing units. For example,the processor 210 may include an application processor (applicationprocessor. AP), a modem processor, a graphics processing unit (graphicsprocessing unit, GPU), an image signal processor (image signalprocessor, ISP), a controller, a memory, a video codec, a digital signalprocessor (digital signal processor, DSP), a baseband processor, and/ora neural-network processing unit (neural-network processing unit, NPU),and the like. Different processing units may be independent devices, ormay be integrated in one or more processors.

The controller may be a nerve center and a command center of theelectronic device 200. The controller can generate an operation controlsignal based on an instruction operation code and a time sequencesignal, to complete control of instruction obtaining and instructionexecution.

A memory may be further disposed in the processor 210 to store aninstruction and data. In some embodiments, the memory in the processor210 is a cache. The memory can store an instruction or data that theprocessor 210 has just used or recycled. If the processor 210 needs touse the instruction or the data again, the processor 210 can directlycall the instruction or the data from the memory. In this way, repeatedaccess is avoided, and waiting time of the processor 210 is reduced,thereby improving system efficiency.

In some embodiments, the processor 210 may include one or moreinterfaces. The interface may include an inter-integrated circuit(inter-integrated circuit, I2C) interface, an inter-integrated circuitsound (inter-integrated circuit sound, I2S) interface, a pulse codemodulation (pulse code modulation, PCM) interlace, a universalasynchronous receiver/transmitter (universal asynchronousreceiver/transmitter, UART) interface, a mobile industry processorinterface (mobile industry processor interface, MIPI), a general-purposeinput/output (general-purpose input/output, GPIO) interlace, asubscriber identity module (subscriber identity module, SIM) interface,and/or a universal serial bus (universal serial bus, USB) interface, andthe like.

The I2C interface is a two-way synchronization serial bus, including aserial data line (serial data line. SDA) and a serial clock line (derailclock line, SCL). In some embodiments, the processor 210 may include aplurality of I2C buses. The processor 210 may be coupled to the touchsensor 280K, a charger, a flash, the camera 293, and the like,respectively through different I2C bus interfaces. For example, theprocessor 210 may be coupled to the touch sensor 280 k through the I2Cinterface, to enable the processor 210 to communicate with the touchsensor 280K through the I2C bus interface, thereby implementing a touchfunction of the electronic device 200.

The I2S interface may be used for audio communication. In someembodiments, the processor 210 may include a plurality of I2S buses. Theprocessor 210 may be coupled to the audio module 270 through the I2Sbus, thereby implementing communication between the processor 210 andthe audio module 270. In some embodiments, the audio module 270 maytransfer an audio signal to the wireless communications module 260through the I2S interface, thereby implementing a function of answeringa call by using a Bluetooth headset.

The PCM interface may also be used for audio communication, andsampling, quantizing, and encoding analog signals. In some embodiments,the audio module 270 and the wireless communications module 260 may becoupled to each other through the PCM bus interface. In someembodiments, the audio module 270 may also transfer an audio signal tothe wireless communications module 260 through the PCM interface,thereby implementing the function of answering a call by using aBluetooth headset. The I2S interface and the PCM interface can be bothused for audio communication.

The UART interface is a universal serial data bus and is used forasynchronous communication. The bus may be a two-way communications bus.The bus converts to-be-transmitted data between serial communication andparallel communication. In some embodiments, the UART interface isusually configured to connect the processor 210 and the wirelesscommunications module 260. For example, the processor 210 is incommunication with a Bluetooth module in the wireless communicationsmodule 260 through the UART interface, thereby implementing a Bluetoothfunction. In some embodiments, the audio module 270 may transfer anaudio signal to the wireless communications module 260 through the UARTinterface, thereby implementing a function of playing music by using aBluetooth headset.

The MIPI interface may be configured to connect the processor 210 andthe display 294, the camera 293, or another peripheral device. The MIPIinterface includes a camera serial interface (camera serial interface,CSI), a display serial interface (display serial interface, DSI), andthe like. In some embodiments, the processor 210 and the camera 293 arein communication with each other through the CSI interface, therebyimplementing a photographing function of the electronic device 200. Theprocessor 210 and the display 294 are in communication with each otherthrough the DSI interface, thereby implementing a display function ofthe electronic device 200.

The GPIO interface may be configured by using software. The GPIOinterface may be configured to be a control signal, or may be configuredto be a data signal. In some embodiments, the GPIO interface may beconfigured to connect the processor 210 and the camera 293, the display294, the wireless communications module 260, the audio module 270, thesensor module 280, and the like. The GPIO interface may alternatively beconfigured to be an I2C interface, an I2S interface, a UART interface,an MIPI interface, or the like.

The USB interlace 230 is an interface satisfying a USB standardspecification, and may specifically be a Mini USB interface, a Micro USBinterface, a USB Type C interface, or the like. The USB interface 230can be used to connect a charger to charge the electronic device 200, ormay be used to transmit data between the electronic device 200 and aperipheral device, or may be used to connect a headset to play an audioby using the headset. The interface may also be used to connect anotherelectronic device, such as an AR device.

It may be understood that, the schematic connection relationship betweenthe interfaces of the modules provided in the embodiments of thisapplication is merely schematic description, and does not constitutelimitation to the structure of the electronic device 200. In some otherembodiments, the electronic device 200 may alternatively use aninterface connection manner different from that in the foregoingembodiment or a combination of a plurality of interface connectionmanners.

The charge management module 240 is configured to receive charging inputfrom the charger. The charger may be a wireless charger or may be awired charger. In some embodiments of the wired charger, the chargemanagement module 240 may receive the charging input of the wiredcharger by using the USB interface 230. In some embodiments of thewireless charger, the charge management module 240 may receive wirelesscharging input by using a wireless charging coil of the electronicdevice 200. At the same time of charging the battery 242, tire chargemanagement module 240 may further supply power to the electronic deviceby using the power management module 241.

The power management module 241 is configured to connect the battery242, the charge management module 240, and the processor 210. The powermanagement module 241 receives input from the battery 242 and/or inputfrom the charge management module 240, and supplies power to the memory210, the internal memory 221, an external memory, the display 294, thecamera 293, the wireless communications module 260, and the like. Thepower management module 241 may be further configured to monitor abattery capacity, a quantity of circular times of the battery, a batteryhealth condition (power leakage, resistance), or another parameter. Insome other embodiments, the power management module 241 mayalternatively be disposed in the processor 210. In some otherembodiments, the power management module 241 and the charge managementmodule 240 may alternatively be disposed in a same component.

A wireless communication function of the electronic device 200 can beimplemented by using the antenna 1, the antenna 2, the mobilecommunications module 250, the wireless communications module 260, themodem processor, the baseband processor, and the like.

The antenna 1 and the antenna 2 are configured to transmit and receiveelectromagnetic wave signals. Each antenna in the electronic device 200can be configured to cover single one or more communications frequencybands. Different antennas may be reused to increase utilization of theantenna. For example, the antenna 1 may be reused as a diversity antennaof a wireless local area network. In some other embodiments, the antennamay be used in combination with a tuning switch.

The mobile communications module 250 can provide solutions of wirelesscommunication including 2G/3G/4G/5G applied to the electronic device200. The mobile communications module 250 may include at feast onefilter, a switch, a power amplifier, a low noise amplifier (low noiseamplifier, LNA), and the like. The mobile communications module 250 canreceive an electromagnetic wave by using the antenna 1, performfiltering, amplification, and other processing on the receivedelectromagnetic wave, and transport the electromagnetic wave to themodem processor for demodulation. The mobile communications module 250can also amplify a signal obtained after being modulated by the modemprocessor, and transform the signal into an electromagnetic wave andradiate the electromagnetic wave by using the antenna 1. In someembodiments, at least some functional modules of the mobilecommunications module 250 may be disposed in the processor 210. In someembodiments, at least some functional modules of the mobilecommunications module 250 and at least some modules of the processor 210may be disposed in a same component.

The modem processor may include a modulator and a demodulator. Themodulator is configured modulate a to-be-sent low-frequency basebandsignal into a medium- or high-frequency signal. The demodulator isconfigured to demodulate a received electromagnetic wave signal into alow-frequency baseband signal. Then, the demodulator transports thelow-frequency baseband signal obtained by demodulation to the basebandprocessor for processing. After being processed by the basebandprocessor, the low-frequency baseband signal is transferred to theapplication processor. The application processor outputs a sound signalby using an audio device (not limited to the speaker 270A, the receiver270B, or the like), or displays an image or a video by using the display294. In some embodiments, the modem processor may be an independentcomponent. In some other embodiments, the modem processor may beindependent to the processor 210, and is disposed in a same componentwith the mobile communications module 250 or another functional module.

The wireless communications module 260 can provide solutions of wirelesscommunication including wireless local area networks (wireless localarea networks, WLAN) (such as a wireless fidelity (wireless fidelity,Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigationsatellite system (global navigation satellite system, GNSS), frequencymodulation (frequency modulation, FM), near field communication (nearfield communication, NFC), an infrared (infrared, IR) technology, andthe like applied to the electronic device 200. The wirelesscommunications module 260 may be one or more components in which atfeast one communications processing module is integrated. The wirelesscommunications module 260 receives an electromagnetic wave by using theantenna 2, performs frequency modulation and filtering processing on anelectromagnetic signal, and sends the processed signal to the processor210. The wireless communications module 260 can also receive ato-be-sent signal from the processor 210, perform frequency modulationand amplification on the signal, and transform the signal into anelectromagnetic wave and radiate the electromagnetic wave by using theantenna 2.

In some embodiments, the antenna 1 and the mobile communications module250 of the electronic device 200 are coupled, the antenna 2 and thewireless communications module 260 are coupled, so that the electronicdevice 200 can perform communication with another device by using awireless communications technology and a network.

The wireless communications technology may include a global system formobile communications (global system for mobile communications, GSM), ageneral packet radio service (general packet radio service, GPRS), codedivision multiple access (code division multiple access, CDMA), widebandcode division multiple access (wideband code division multiple access,WCDMA), time-division code division multiple access (time-division codedivision multiple access, TD-SCDMA), long term evolution (long termevolution, LTD, email, BT, GNSS, WLAN, NFC, FM, and/or an IR technology,and the like. The GNSS may include a global positioning system (globalpositioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a beidou navigation satellitesystem (beidou navigation satellite system, BDS), a quasi-zenithsatellite system (quasi-zenith satellite system, QZSS), and/or satellitebased augmentation systems (satellite based augmentation systems, SBAS).

The electronic device 200 implements a display function by using theGPU, the display 294, the application processor, and the like. The GPUis a microprocessor for image processing, and is connected to thedisplay 294 and the application processor. The GPU is configured toperform mathematical and geometric calculation for graphic rendering.The processor 210 may include one or more GPUs, and the GPU executes aprogram instruction to generate or change display information.

The display 294 is configured to display an image, a video, or the like.The display 294 includes a display panel. The display panel can useliquid crystal display (liquid crystal display, LCD), organiclight-emitting diode (organic light-emitting diode, OLED), active-matrixorganic light emitting diode (active-matrix organic light emittingdiode, AMOLED), flex light-emitting diode (flex light-emitting diode,FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes(quantum dot light emitting diodes, QLED) or the like. In someembodiments, the electronic device 200 may include one or N displays294, where N is a positive integer greater than one. In the embodimentsof this application, a hole may be dug on the display 294. For example,a through hole is arranged on an upper left corner, an upper rightcorner, or another position of the display 294, and the camera 293 canbe embedded in the through hole.

The electronic device 200 can implement a photographing function byusing the ISP, the camera 293, the video codec, the GPU, the display294, the application processor, and the like.

The ISP is configured to process data fed back by the camera 293. Forexample, during photographing, the shutter is opened, a light ray istransferred to a light sensing component of the camera, a light signalis transformed into an electrical signal, and the light sensingcomponent of camera transfers the electrical signal to the ISP totransform the electrical signal into an image visible to human eyes. TheISP can also perform algorithm optimization on noise, brightness, and askin color in the image. The ISP can also optimize exposure, a colortemperature, or another parameter of a photographing scene. In someembodiments, the ISP may be disposed in the camera 293.

The camera 293 is configured to capture a static image or a video. Anoptical image of an object is generated by a lens and is projected tothe light sensing component. The light sensing component may be a chargecoupled device (charge coupled device, CCD) sensor or a complementarymetal-oxide-semiconductor (complementary metal oxide semiconductor,CMOS) phototransistor. The light sensing component transforms the lightsignal into the electrical signal, and then transfers the electricalsignal to the ISP to transform the electrical signal into a digitalimage signal. The ISP outputs the digital image signal to the DSP forprocessing. The DSP transforms the digital image signal into an imagesignal of standard RGB, YU V. or another format. In some embodiments,the electronic device 200 may include one or N cameras 293, where N is apositive integer greater than one.

The digital signal processor is configured to process a digital signal,and can process another digital signal apart from processing the digitalimage signal, for example, when the electronic device 200 selects afrequency, the digital signal processor is configured to perform Fouriertransform on frequency energy.

The video codec is configured to compress or decompress a digital video.The electronic device 200 can support one or more types of video codecs.In this way, the electronic device 200 can play or record videos ofvarious coding formats, such as moving picture experts group, (movingpicture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.

The NPU is a neural-network (neural-network, NN) calculation processor,quickly processes input information by learning from a structure of abiological neural network, for example, learning from a transmittingmode in between neurons in a human brain, and can continuously performself learning. By using the NPU, the electronic device 200 can implementan application including intelligent cognition, such as imagerecognition, human face recognition, voice recognition, textunderstanding, or the like.

The external memory interface 220 can be configured to connect anexternal memory card, such as a Micro SD card, to implement extension ofa storage capability of the electronic device 200. The external memorycard implements a data storage function by using the external memoryinterface 220 and the processor 210. For example, a video or anotherfile is stored in the external memory card.

The memory 221 can be configured to store computer-executable programcode, and the executable program code includes an instruction. Theprocessor 210 runs the instruction stored in the internal memory 221, toperform various function applications and data processing of theelectronic device 200.

The internal memory 221 may include a program storage area and a datastorage area. The program storage area may store an operating system, anapplication program required by at least one function (such as a soundplayback function and an image display function), and the like. The datastorage area may store data (such as audio data and an address book)created according to use of the electronic device 200, and the like. Inaddition, the internal memory 221 may include a high speed random accessmemory, and may also include a non-volatile memory, such as at least onemagnetic disk memory, a flash memory, a universal flash storage(universal flash storage, UFS), or the like.

The electronic device 200, by using the audio module 270, the speaker270A, the receiver 270B, the microphone 270C, the headset jack 270D, theapplication processor, and the like, can implement an audio function,for example, music playback or recording.

The audio module 270 is configured to transform digital audioinformation into analog audio signal output, and is also configured totransform analog audio input into a digital audio signal. The audiomodule 270 can also be configured to encode and decode an audio signal.In some embodiments, the audio module 270 can be disposed in theprocessor 210, or some functional modules of the audio module 270 isdisposed in the processor 210.

The speaker 270A, also referred to as a “loudspeaker”, is configured totransform an audio electrical signal into a sound signal. The electronicdevice 200 can play music or play hands-tree phone call by using thespeaker 270A.

The receiver 270B, also referred to as an “earpiece”, is configured totransform an audio electrical signal into a sound signal. When theelectronic device 200 answers a call or plays voice information, thereceiver 270B can be put close to a human ear to listen to the sound.

The microphone 270C, also referred to as a “mouthpiece” or a “voicetransmitter”, is configured to transform a sound signal into anelectrical signal. When making a phone call or sending voiceinformation, the user can put the microphone 270C near the mouth, andinput a sound signal into the microphone 270C. At least one microphone270C can be disposed on the electronic device 200. In some otherembodiments, two microphones 270C can be disposed on the electronicdevice 200, and in addition to collecting the sound signal, canimplement a function of noise reduction. In some other embodiments,there may be three, four, or more microphones 270C disposed on theelectronic device 200, to implement sound signal collecting and noisereduction, and in addition, a sound source can be identified toimplement a directional recording function.

The headset jack 270D is configured to connect a wired headset. Theheadset jack 2701) may be the USB interface 230, or may be a 3.5 mminterface of an open mobile terminal platform (open mobile terminalplatform, OMTP) standard, or an interface of a cellulartelecommunications industry association of the USA (cellulartelecommunications industry association of the USA, CTIA) standard.

The pressure sensor 280A is configured to sense a pressure signal, andcan transform the pressure signal into an electrical signal. In someembodiments, the pressure sensor 280A can be disposed in the display294.

There are various pressure sensors 280A, such as a resistive pressuresensor, an inductive pressure sensor, a capacitive pressure sensor, orthe like. The capacitive pressure sensor may include at least twoparallel panels that have conductive materials. When a force is appliedto the pressure sensor 280A, capacitance between electrodes changes. Theelectronic device 200 determines a strength of the pressure based on thechange of the capacitance. When there is a touch operation on thedisplay 294, the electronic device 200 detects a strength of the touchoperation according to the pressure sensor 280A.

The electronic device 200 can also calculate a touching position basedon a detection signal of the pressure sensor 280A. In some embodiments,touch operations applied to a same touch position but with differenttouch operation strengths may correspond to different operationinstructions. For example, when a touch operation of which a touchoperation strength is less than a first pressure threshold is applied toan icon of an SMS message application, an instruction of viewing an SMSmessage is executed. When a touch operation of which a touch operationstrength is greater than or equal to the first pressure threshold isapplied to the icon of the SMS message application, an instruction ofcreating an SMS message is executed.

The gyroscope sensor 280B can be configured to determine a motionposture of the electronic device 200. In some embodiments, angularvelocities of the electronic device 200 around three axes (namely, x, v,and z axes) can be determined by using the gyroscope sensor 280B. Thegyroscope sensor 280B can be used for photographing stabilization. Forexample, when the shutter is pressed, the gyroscope sensor 280B detectsa trembling angle of the electronic device 200, and obtains a distancethat a camera module needs to compensate for by calculation based on theangle, so that the lens in enabled to move in an opposite direction tocounteract the trembling of the electronic device 200, therebyimplementing stabilization. The gyroscope sensor 280B may also be usedin a scenario of navigation or a motion sensing game.

The barometric pressure sensor 280C is configured to measure abarometric pressure. In some embodiments, the electronic device 200calculates an altitude height based on a barometric pressure valuemeasured by the barometric pressure sensor 280C, to assist positioningand navigation.

The magnetic sensor 280D includes a Hall effect sensor. The electronicdevice 200 can detect, by using the magnetic sensor 280D, whether aflipping cover or a case is open or closed. In some embodiments, whenthe electronic device 200 is a flipping device, the electronic device200 can detect, by using the magnetic sensor 280D, whether the flippingcover is open or closed, and further set, based on the detectedopen-closing slate of the case or open-closing state of the flippingcover, a feature including automatically unlocking by flipping and thelike.

The acceleration sensor 280B can detect acceleration values of theelectronic device 200 in each direction (generally three axes), and candetect a value and a direction of the gravity when the electronic device200 is static. The acceleration sensor 280E may further be configured toidentify a posture of the electronic device, and is applied to switchingbetween a portrait or landscape screen, a step counter, or anotherapplication.

The distance sensor 280F is configured to measure a distance, theelectronic device 200 can measure the distance by using infrared orlaser. In some embodiments, at the photographing scene, the electronicdevice 200 can measure a distance by using the distance sensor 280F toimplement fast focusing.

The optical proximity sensor 280G may include, for example, a lightemitting diode (LED) and a light detector, such as a photodiode. Thelight emitting diode may be an infrared light emitting diode.

The electronic device 200 emits infrared light by using the lightemitting diode. The electronic device 200 detects infrared reflectionlight by using the photodiode. When detecting sufficient reflectionlight, it can be determined that there is an object near the electronicdevice 200. When detecting insufficient reflection light, the electronicdevice 200 can determine that there is no object near the electronicdevice 200. The electronic device 200 can detect, by using the opticalproximity sensor 280G that the user holds the electronic device 200 nearto an ear for conversation, so that the screen can be automaticallyturned off to save power. The optical proximity sensor 280G can also beused for automatic screen unlocking and lock in a case mode or a pocketmode.

The ambient light sensor 280L is used to sense environment brightness.The electronic device 200 can self-adaptively adjust brightness of thedisplay 294 based on the sensed environment brightness. The ambientlight sensor 280L can also be configured to automatically adjust whitebalance during photographing. The ambient light sensor 280L can furtherbe used in cooperation with the optical proximity sensor 280G to detectwhether the electronic device 200 is in a pocket, thereby preventaccidental touch.

The fingerprint sensor 280H is used to collect a fingerprint. Theelectronic device 200 can implement fingerprint unlocking, applicationlock accessing, fingerprint photographing, fingerprint call answering,and the like by using a collected fingerprint feature.

The temperature sensor 280J is configured to detect inclination atemperature. In some embodiments, the electronic device 200 performs atemperature processing policy based on the temperature detected by thetemperature sensor 280J.

For example, when the temperature reported by the temperature sensor280J exceeds a threshold, the electronic device 200 performs aperformance of cooling down a processor near the temperature sensor280J, to reduce power consumption and implement heat protection. In someother embodiments, when the temperature is lower than another threshold,the electronic device 200 heats the battery 242, to prevent theelectronic device 200 from abnormal power-off caused by the lowtemperature. In some other embodiments, when the temperature is lowerthan still another threshold, the electronic device 200 increases anoutput voltage of the battery 242, to avoid abnormal power-off caused bythe low temperature.

The touch sensor 280K is also referred to as a “touch panel”. The touchsensor 280K can be disposed in the display 294, and the touch sensor280K and the display 294 form a touchscreen, also referred to as a“touch-control screen”.

The touch sensor 280K is configured to detect a touch operation appliedon or near the touch sensor 280K. The touch sensor can transfer adetected touch operation to the application processor to determine atouch event type. Visual output related to the touch operation can beprovided by the display 294. In some other embodiments, the touch sensor280K may alternatively be disposed on a surface of the electronic device200 and at a different positioning with the display 294.

The bone conduction sensor 280M can obtain a vibration signal. In someembodiments, the bone conduction sensor 280M can obtain a vibrationsignal from a vibrating bone of an acoustic part in a human body. Thebone conduction sensor 280M can also contact human pulses to receive ablood pressure vibration signal.

In some embodiments, the bone conduction sensor 280M may alternativelybe disposed in a headset to form a bone conduction headset. The audiomodule 270 can obtain an audio signal by parsing the vibration signalfrom the vibrating bone of the acoustic part obtained by the boneconduction sensor 280M, thereby implementing an audio function. Theapplication processor may parse heart rale information based on theblood pressure vibration signal obtained by the bone conduction sensor280M, thereby implementing a heart rate detection function.

The key 290 includes a power key, a volume key, or the like. The key 290may be a mechanical key, or may be a touch key. The electronic device200 may receive key pressing input, and generate key signal inputrelated to user setting and function control of the electronic device200.

The motor 291 can generate a vibration prompt. The motor 291 can be usedfor an incoming call vibration prompt, and may also be used for touchvibration feedback. For example, touch operations applied to differentapplications (such as photographing and audio playing) may correspond todifferent vibration feedback effects. Touch operations applied todifferent areas of the display 294 may also correspond to differentvibration feedback effects produced by the motor 291. Differentapplication scenarios (such as: time reminding, information receiving,clock alarming, and gaming) may also correspond to different vibrationfeedback effects. The touch vibration feedback effect may also becustomized.

The indicator 292 may be an indication light, may be configured toindicate a charging state, a battery change, and may also be configuredto indicate a message, a missed incoming call, a notification, and thelike.

The SIM card interface 295 is used to connect a SIM card. The SIM cardcan be inserted into the SIM card interface 295 or removed from the SIMcard interface 295, thereby implementing contact with and removal fromthe electronic device 200.

The electronic device 200 may support one or N SIM card interfaces,where N is a positive integer greater than one. The SIM card interface295 can support a Nano SIM card, a Micro SIM card, a SIM card, and thelike. A plurality of cards may be inserted into a same SIM cardinterface 295. The plurality of cards may have a same type or differenttypes.

The SIM card interface 295 may also be compatible to SIM cards ofdifferent types. The SIM card interface 295 may also be compatible to anexternal memory card. The SIM card interacts with a network, so that theelectronic device 200 can implement conversation, data communication,and another function. In some embodiments, the electronic device 200uses an eSIM, namely an embedded SIM card. The eSIM card is embedded inthe electronic device 200, and cannot be separated from the electronicdevice 200.

A software system of the electronic device 200 may use a hierarchicalarchitecture, an event-driven architecture, a micro core architecture, amicro service architecture, or a cloud architecture. In the embodimentsof this application, an example of an Android system of the hierarchicalarchitecture is used to describe the software structure of theelectronic device 200.

FIG. 3 is a block diagram of the software structure of the electronicdevice 200 according to the embodiments of this application.

In the hierarchical architecture, software is divided into layers, andeach layer has a clear role and task. The layers are in communicationwith each other by using a software interface. In some embodiments, theAndroid system is divided into four layers, from top to bottom: anapplication program layer, an application program framework layer, anAndroid runtime (Android runtime) and a system library, and a kernellayer.

The application program layer may include a series of applicationprogram packages.

As shown in FIG. 3, the application program package may include Camera,Gallery, Calendar, Phone, Map, Navigation, WLAN, Bluetooth, Music,Video, Message, or another application program.

The application program framework layer provides an applicationprogramming interface (application programming interface, API) and aprogramming framework for the application in the application programlayer. The application program framework includes some predefinedfunctions.

As shown in FIG. 3, the application program framework layer includes awindow manager, a service provider, a view system, a phone manager, aresource manager, a notification manager, and the like.

The window manager is used to manage a window program. The windowmanager can obtain a size of the display, determine whether there is astatus bar, lock the screen, capture the screen, and the like.

The service provider is used to save and obtain data, and enable thedata to be accessed by the application program. The data may include avideo, an image, an audio, made and incoming calls, a browsing historyand a bookmark, a phone book, or the like.

The view system includes a visualized control, for example, a worddisplaying control, or an image displaying control. The view system canbe used to construct the application program. A display interface mayinclude one or more views. For example, a display interface including amessage notification icon may include a view displaying words and a viewdisplaying an image.

The phone manager is used to provide a communication function of theelectronic device 200, for example, conversation status management(including answering, hanging up, and the like).

The resource manager provides the application program with variousresources, such as a localized character string, an icon, a picture, alayout file, or a video file.

The notification manager enables the application program to displaynotification information in the status bar, so that a message of anotification type can be sent and can automatically disappear after ashort stay, and user interaction is not needed. For example, livenotification manager is used to tell that downloading is complete, orused for a message prompt.

The notification manager may also be a notification that appears in aform of a table or running text in a top status bar of the system. Forexample, text prompt information appears in the status bar, prompt toneis made, the electronic device vibrates, and the indicator lightflickers.

The Android Runtime includes a core library and a virtual machine. TheAndroid runtime is responsible for scheduling and management of theAndroid system.

The core library includes two parts: one part is performance functionsthat the java language needs to invoke, and another part is a corelibrary of the Android.

The application program layer and the application program frameworklayer run in the virtual machine. The virtual machine executes javafiles of the application program layer and the application programframework layer as binary files. The virtual machine is used for lifecycle management of an execution object, stack management, threadmanagement, security and abnormality management, rubbish recycling, andanother function.

The system library may include a plurality of functional modules, suchas a surface manager (surface manager), a media library (MediaLibraries), a three-dimensional graphics processing library (forexample, OpenGL ES), or a 2D graphics engine (for example, SGL).

The surface manager is used to manage a display subsystem, and providesa plurality of application programs with 2D and 3D layer convergence.

The media library supports a plurality of commonly used audio and videoformats, playback and recording, a static image file, and the like. Themedia library can support a plurality of audio and video coding formats,such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

The three-dimensional graphics processing library is used to implementthree-dimensional graphics drawing, graphics rendering, synthesis, layerprocessing, and the like.

The 2D graphics engine is a drawing engine of 2D drawing.

The kernel layer is a layer between hardware and the software. Thekernel layer includes at least a display driver, a camera driver, anaudio driver, and a sensor driver.

For example, all technical solutions in the following embodiments may beimplemented on the electronic device 200 having the foregoing hardwarearchitecture and the software architecture. The control method providedin the embodiments of this application is described in detail below withreference to the accompanying drawings and an application scenario.

FIG. 4 is a schematic flowchart of the control method according to theembodiments of this application. The method is applied to an electronicdevice. The electronic device may include a display and hardware such asa camera. A through hole is provided in the display, and the hardware isembedded in the through hole provided in the display. For example, asshown in FIG. 1, the camera is embedded in the through hole provided inthe display.

As shown in FIG. 4, the method may include the following S401 to S405.

S401. The electronic device displays a first interface on the display,where the first interface includes a first interface element, a displayposition of the first interface element encircles the through holeprovided in the display, and the through hole is configured toaccommodate the hardware such as the camera.

For example, when the through hole is provided in the display of theelectronic device, and the camera is disposed in the through hole, whenthe electronic device displays the first interface on the display, thefirst interface element may be displayed in the display area thatencircles the through hole. For example, the first interface element maybe a color ring, and a display position of the color ring encircles thethrough hole provided in the display. In this way, the abruptness of thecamera that is disposed in the through hole and that is in the interfacedisplayed on the display can be alleviated, and a user can have bettervisual experience.

In some embodiments, the through hole of the display may be provided onan upper left corner, or an upper right corner of the display, or amiddle position close to an upper bezel of the electronic device.

Usually, an area close to an upper bezel of the display is used todisplay a status bar, and correspondingly, the first interface elementmay be included in a status bar of the first interface displayed on thedisplay. The status bar may further include an interface element used toprompt system time, a battery level of the electronic device, a signalcondition of a network that the electronic device is connected to, orother information.

In some embodiments, the foregoing first interface may be a home screen(home screen) of the electronic device, or may be an interface of anapplication program in the electronic device.

For example, with reference to FIG. 5, an example in which the firstinterface is the home screen of the electronic device, and the throughhole of the display is provided on the upper left corner of the displayis used. As shown in FIG. 5(a), the electronic device displays a homescreen 501 on the display, where the home screen 501 includes a statusbar 502, and the status bar 502 includes a first interface element 503(such as a color ring, where FIG. 5 fa) and FIG. 5(b) are filleddifferently to represent colors of the color ring). The FIG. 5(b) is apartial enlarged view of an area in which the first interface element503 shown in FIG. 5(a) is located. As shown in FIG. 5(b), a displayposition of the first interface element 503 encircles the through holeprovided in the display, where a camera 504 is disposed in the throughhole.

Certainly, in the embodiments of this application, the first interfaceelement displayed by the electronic device is not limited to the colorring shown in FIG. 5(a) and FIG. 5(b), and may be an interface elementof another shape, another si/e, and another color. In addition, thefirst interface element may be displayed on the display statically, ormay be displayed on the display dynamically. This is not limited in theembodiments of this application.

S402. The electronic device receives a first operation performed by theuser.

S403. The electronic device displays a second interface on the displayin response to the first operation, where the second interface includesthe first interface element, and the second interface is an interface ofa first application program.

The first operation may be used to open the first application program.For example, the first operation may be a tapping operation performed bythe user on an icon of the first application program displayed on thehome screen. In response to the first operation of the user, theelectronic device may run the first application program and display thesecond interface on the display, for example, display a home screen ofthe first application program.

When the electronic device displays the second interface on the display,the first interface element may still be displayed in the display areathat encircles the through hole provided in the display. The firstapplication program may be any one of application programs included inthe electronic device. The application program may be a systemapplication or may be a third-party application.

For example, with reference to FIG. 5, an example in which the firstapplication program is Camera is used. When the user needs to use Camerato lake a photo, the user may perform the first operation, such as atapping operation, on the icon of Camera shown in FIG. 5(a). As shown inFIG. 6(a), in response to the first operation, the electronic device mayrun the Camera application, and displays an interface 601 of Camera onthe display. The interface 601 of Camera includes a first interfaceelement 602 (such as a color ring, where FIG. 6(a) and FIG. 6(b) arefilled differently to represent colors of the color ring). The FIG. 6(b)is a partial enlarged view of an area in which the first interfaceelement 602 shown in FIG. 6(a) is located. As shown in FIG. 6(b), adisplay position of the first interface element 602 encircles thethrough hole provided in the display, where a camera 603 is disposed inthe through hole.

S404. The electronic device receives a second operation of enabling, bythe user, a first mode of the first application program.

An application program included in the electronic device may include aplurality of modes, and the user may set the mode of the applicationprogram to use a function corresponding to the selected mode. The firstmode may be any one of modes included in the first application program.

For example, the example in which the first application program isCamera is used, and Camera may include a photographing mode, a videorecording mode, and various scene modes. The scene modes may include ascenery mode, a night scenery mode, a human portrait mode, aprofessional mode, and the like. The user may selectively enable any oneof the modes included in Camera based own preferences or a photographingrequirement.

S405. The electronic device enables the first mode in response to thesecond operation, displays a second interface element on the secondinterface, and skips displaying the first interface element, where thesecond interface element includes prompt information used to prompt thatthe first mode is enabled, a display position of the second interfaceelement encircles the through hole provided in the display, and adisplay area of the second interface element is greater than a displayarea of the first interface element.

After receiving the second operation used to enable the first mode, theelectronic device may enable the first mode, and change the firstinterface element displayed in the display area encircling the throughhole to the second interface element.

A display area of the second interface element may be greater than thedisplay area of the first interface element, and the second interfaceelement may include prompt information, where the prompt information isused to prompt the user that the first mode of the first applicationprogram is enabled.

For example, with reference to FIG. 6, an example in which the firstapplication program is Camera is used. After opening Camera, if the userwants to use the human portrait mode of the scene modes of Camera, theuser may perform the second operation, for example, a tapping operation,on an option 604 of the human portrait mode shown in FIG. 6(a). Inresponse to the second operation, the electronic device may enable thehuman portrait mode of Camera, and change the first interface element602 (for example, the color ring shown in FIG. 6(b)) in the interface601 of Camera displayed on the display to the second interface element701. For example, the second interface element 701 is an interfaceelement in a shape of a capsule, as shown in FIG. 7(a).

The FIG. 7(b) is a partial enlarged view of an area in which the secondinterface element 701 shown in FIG. 7(a) is located. As shown in FIG.7(b), the display position of the second interface element 701 encirclesthe through hole provided in the display, where a camera 702 is disposedin the through hole. The second interlace element 702 includes promptinformation 703, for example, text “human portrait mode”. Certainly, theprompt information 703 may alternatively be another image or characterthat can refer to the mode. The prompt information 703 is used to promptthe user that the human portrait mode is enabled. It may be understoodthat, because the second interface element 701 includes the promptinformation 703 used to prompt the user that the corresponding mode isenabled, a display area of the second interface element 701 may begreater than the display area of the first interface element 602.

In some other embodiments of this application, if the electronic deviceruns the first application program, there is a default setting of themode of the first application program. That is, after receiving thefirst operation described in S402, the electronic device, at the sametime of running the first application program, enables a default mode ofthe first application program. Correspondingly, in response to the firstoperation in S402, the electronic device displays, on the display, thesecond interface that does not include the first interface element butincludes the second interface element, where the second interfaceelement includes prompt information used to prompt the user that thedefault mode is enabled. The display position of the second interfaceelement encircles the through hole provided in the display. The displayarea of the first interface element is greater than the display area ofthe first interface element in S401.

For example, the example in which the first application program isCamera is used. After the user performs a lapping operation on the iconof Camera displayed on the home screen, the electronic device may runthe Camera application and enable the default mode, for example, thephotographing mode of Camera. The electronic device displays theinterface of Camera, and the interface includes the second interfaceelement, namely, the interface element in the shape of the capsule. Thedisplay position of the interface element in the shape of the capsuleencircles the through hole provided in the display, and the camera isdisposed in the through hole. The interface element in the shape of thecapsule may include prompt information, for example, text “photographingmode” (or another image or character that can refer to the mode), usedto prompt the user that the photographing mode is enabled.

Certainly, in the embodiments of this application, the second interfaceelement displayed by the electronic device is not limited to theinterface element in the shape of the capsule shown in FIG. 7(a) andFIG. 7(b), and the second interface element may be an interface elementof another shape, another size, and another color. In addition, thesecond interface element may be displayed on the display statically, ormay be displayed on the display dynamically. For example, the secondinterface element is displayed on the display in a form of a breathinglight. This is not limited in the embodiments of this application.

In some embodiments, the electronic device can change, based on a scenetransition effect, the first interface element that is in the secondinterface and that is displayed in the display area encircling thethrough hole provided in the display to the second interface element. Inthis way, the interface element can better prompt a current status ofthe electronic device to the user, thereby further improving userexperience. The scene transition effect may be predefined or may bemanually set by the user. This is not limited herein.

In this way, the abruptness of hardware (for example, the camera) thatis disposed in the through hole of the display and that is in theinterface displayed on the display can be alleviated. In addition, theelectronic device may change, based on a current set mode of the firstapplication program (for example, Camera), the interface elementassociated with the camera, and prompt the current status to the user byusing the changed interface element. When the first application programis Camera, because prompted content is related to a current status ofthe hardware camera, a manner of performing prompting beside the cameracan improve prompting efficiency, so that the user learns of the currentworking status of the camera more intuitively and quickly, and theintelligence of human-computer interaction is increased. The useexperience of the user is improved.

FIG. 8 is a schematic flowchart of another control method according toan embodiment of this application. The method is applied to anelectronic device. The electronic device may include a display andhardware such as a camera. A through hole is provided in the display,and the hardware is embedded in the through hole provided in thedisplay. For example, as shown in FIG. 1, the camera is embedded in thedisplay.

As shown in FIG. 8, the method may include the following S801 to S805.

S801. The electronic device displays a first interface on the display,where the first interface includes a first interface element, a displayposition of the first interface element encircles the through holeprovided in the display, and the through hole is configured toaccommodate the hardware such as the camera.

For example, the first interface may be a dialing interface. The dialinginterface may include a status bar, where the status bar include a firstinterface element. For example, the first interface element may be thecolor ring shown in FIG. 5(a) and FIG. 5(b), and a display position ofthe first interface element encircles the through hole provided in thedisplay. Detailed descriptions of the first interface element aresimilar to specific descriptions of corresponding content in S401 in theforegoing embodiment, and details are not described herein again.

S802. The electronic device receives a first operation of making, by auser, a phone call.

S803. The electronic device displays a call interface on the display inresponse to the first operation, where the call interface includes thefirst interface element.

For example, the first operation may be a tapping operation performed bythe user on a dialing button in the dialing interface. In response tothe first operation of the user, the electronic device may make a phonecall to a corresponding number and display the call interface on thedisplay. When the electronic device displays the call interface, thefirst interface element may still be displayed in the display area thatencircles the through hole provided in the display.

For example, as shown in FIG. 9, an example in which the first interfaceis the dialing interface, and the through hole of the display isprovided on the upper left corner of the display is used. When the userneeds to make a phone call, the user may enter a to-be-dialed phonenumber in a dialing interface 901 shown in FIG. 9(a), and performs atapping operation on a dialing button 902. A status bar of the dialinginterface 901 shown in FIG. 9(a) includes a first interface element 903.A display position of the first interface element 903 encircles thethrough hole provided in the display, where a camera 904 is disposed inthe through hole. In response to the tapping operation performed by theuser on the dialing button 902, the electronic device may make a phonecall to a corresponding number and display a call interface 905 on thedisplay. As shown in FIG. 9(b), the status bar of the call interface 905also includes the first interface element 903 of which the displayposition encircles the through hole. The camera 904 is disposed in thethrough hole. For a specific example of the first interface element 903,refer to the color ring shown in FIG. 5(a) and FIG. 5(b) in theforegoing embodiment. Details are not described herein again.

S804. The electronic device receives a second operation performed by theuser.

The second operation may be a triggering operation performed by the useron a home screen key of the electronic device. The home screen key maybe a physical key or may be a virtual key. Alternatively, the secondoperation may be a triggering operation performed by the user on a home(home) button included in a navigation bar. Both of the home screen keyand the home button may be used to receive an instruction of the user,to return an interface currently displayed on the display to the homescreen.

Alternatively, the second operation may be a triggering operation usedto open another application program. For example, when the callinterface is currently displayed on the display, and the electronicdevice receives a notification message of an application program, theelectronic device can display, on the display, a notification barincluding the notification message, and the second operation may be atapping operation performed by the user on the notification bar.

S805. The electronic device displays a second interface on the displayin response to the second operation, where the second interface isdifferent from the call interface, the second interface includes asecond interface element, the second interface element includes promptinformation used to prompt that the electronic device is currently in acall or prompt call duration, a display position of the second interfaceelement encircles the through hole disposed in the display, and adisplay area of the second interface element is greater than a displayarea of the first interface element.

After receiving the second operation, the electronic device may display,on the display, the second interface that is different from the callinterface. For example, the foregoing second operation is a triggeringoperation performed by the user on the home screen key or the homebutton, and the second interface is the home screen. Alternatively, thesecond operation is a tapping operation performed by the user on thenotification bar including a notification message of an applicationprogram, and the second interface is an interface of the applicationprogram.

In addition, the second interface includes a second interface element.For example, in the status bar of the second interlace, the secondinterface element is displayed in a display area encircling the throughhole of the display. A display area of the second interface element maybe greater than the display area of the first interface element, and thesecond interface element may include prompt information, where theprompt information may be used to prompt the user that the electronicdevice is currently in a call, or to prompt call duration of the currentcall to the user.

For example, with reference to FIG. 9, an example in which the secondoperation is a triggering operation performed on the home buttonincluded in the navigation bar is used. In a process of making a phonecall by using the electronic device, if the user wants to open the homescreen of the electronic device, the user may perform the triggeringoperation on the home button 906 included in the navigation bar in thecall interface 905 shown in FIG. 9(b). As shown in FIG. 10(a), inresponse to the triggering operation, the electronic device may displaya home screen 1001 on the display, where a status bar of the home screen1001 includes a second interface element 1002, for example, an interfaceelement in a shape of a capsule, as shown in FIG. 10(a).

The FIG. 10(b) is a partial enlarged view of an area in which the secondinterface element 1002 shown in FIG. 10(a) is located. As shown in FIG.10(b), the display position of the second interface element 1002encircles the through hole provided in the display, where a camera 1003is disposed in the through hole. The second interface element 1002includes prompt information 1004, for example, text “call underway . . .” (or another image or symbol that can prompt that the call isunderway). The prompt information 1004 is used to prompt that theelectronic device is currently in a call. It may be understood that,because the second interface element 1002 includes the promptinformation used to prompt the user that the call is underway, a displayarea of the second interface element 1002 may be greater than thedisplay area of the first interface element 903. In addition, the secondinterface element 1002 may further include prompt information used toprompt call duration, to facilitate the user to learn of call durationuntil a current moment.

Certainly, in this embodiment of this application, the second interlaceelement displayed by the electronic device is not limited to theinterface element in the shape of the capsule shown in FIG. 10(a) andFIG. 10(b), and may be an interface element of another shape, anothersize, and another color.

In addition, the second interlace element may be displayed on thedisplay statically, or may be displayed on the display dynamically. Forexample, the second interface element is displayed on the display in aform of a breathing light. This is not limited in this embodiment ofthis application.

In addition, when the second interface element is displayed in thestatus bar, if the display position of the second interface elementoverlaps a display position of another interface element in the statusbar, the second interface element may cover the interface element. Forexample, if the display position of the second interface elementoverlaps a display position of an interface element that is used toprompt a signal condition of a network to which the electronic device isconnected and that is in the status bar, the second interface elementmay cover the interface element. Alternatively, the electronic devicemay change the display position of the interface element that overlapsthe display position of the second interface element, provided that achanged display position does not overlap the display position of thesecond interface element. For example, if the display position of thesecond interface element overlaps a display position of an interfaceelement that is used to prompt a signal condition of a network to whichthe electronic device is connected and that is in the status bar, whenthe second interface element is displayed, the electronic device maychange the display position of the interface element to an area adjacentto the display position of the second interface element, so that thesecond interface element and the another interface element can besimultaneously displayed in the status bar of the display, for example,as shown in FIG. 10(a).

In some embodiments, the electronic device may change, based on a scenetransition effect, the first interface element displayed in the displayarea encircling the through hole of the display to the second interfaceelement, for example, change, based on the scene transition effect, thefirst interface element 903 to the second interface element 1002. Inthis way, the interface element can better prompt a current status ofthe electronic device to the user, thereby further improving userexperience. The scene transition effect may be predefined or may bemanually set by the user. This is not limited herein.

It should be noted that, the foregoing S801 to S805 describe how tobetter prompt the current status of the electronic device by using theinterface element, by using an example in which the user is using theelectronic device to make a phone call, an interface displayed on thedisplay of the electronic device is not the call interface, and theelectronic device prompts, by displaying the interface element in theshape of the capsule in the display area encircling the through hole ofthe display, the user that a call is underway. Similarly, for somefunctions that the electronic device runs in the background, theelectronic device may also prompt, by using an interface elementdisplayed in the display area encircling the through hole of thedisplay, to a user, functions being run in the background, to betterprompt the current status of the electronic device to the user.

For example, if the home screen or an interface of an applicationprogram is displayed on the display of the electronic device, and avoice recording function (or a screen recording function) is being usedin the background, the electronic device may display an interfaceelement, for example, the foregoing interface element in the shape ofthe capsule, in the display area encircling the through hole of thedisplay. The interface element includes prompt information used toprompt that the voice recording function (or the screen recordingfunction) is being used. For another example, if an interface of anapplication program is displayed on the display of the electronicdevice, and the application program is acquiring location information ofthe user in the background or acquires the location information of theuser alter the electronic device enables a driving mode, the electronicdevice may display an interface element, for example, the foregoinginterface element in the shape of the capsule, in the display areaencircling the through hole of live display. The interface elementincludes prompt information used to prompt that the location informationof the user is being acquired.

In this way, the abruptness of hardware (for example, the camera) thatis disposed in the through hole of the display and that is in theinterface displayed on the display can be alleviated. In addition, theelectronic device may change the interface element associated with thecamera, and the changed interface element may be used to prompt to theuser the current status, namely, that the call is underway. A manner ofperforming prompting beside the camera can improve prompting efficiency,so that the user more intuitively and quickly learns that the electronicdevice is currently in a call, the intelligence of human-computerinteraction is increased, and use experience of the user is improved.

In addition, in this embodiment of this application, an interfaceelement associated with the camera, for example, the interface elementin the shape of the capsule (the display position of the interfaceelement encircles the through hole provided in the display), may bedifferent depending on different scenarios. The interface element may beused to prompt information of the electronic device that the usercurrently needs to pay attention to, or used to prompt information thatthe electronic device considers to be relatively important at present.

For example, for an interface element that is displayed in the statusbar and that is used to prompt a battery level of the electronic device,when the battery level of the electronic device is greater than a value,the electronic device may display the interface element used to promptthe battery level of the electronic device out of the interface elementassociated with the camera. When the electronic device determines thatthe battery level of the electronic device is less than the value, tomake the user focus on the information, the electronic device maydisplay the interface element used to prompt the battery level of theelectronic device within the interface element associated with thecamera. For example, when the battery level of the electronic device isless than the value, the electronic device display the interface elementin the shape of the capsule in the area encircling the through hole ofthe display, where the interface element in the shape of the capsuleincludes the interface element used to prompt the battery level of theelectronic device. If the user connects the electronic device to acharger for charging, when the battery level of the electronic device isgreater than the value, the electronic device may move the interfaceelement used to prompt the battery level of the electronic device out ofthe interface element in the shape of the capsule, to be specific,display the interface element used to prompt the battery level of theelectronic device out of the interface element associated with thecamera.

Similarly, if the user sets an alarm, when a difference between currentsystem time and time of the set alarm is greater than a threshold, theelectronic device may display an interface element used to prompt systemtime out of the interface element associate with the camera. When theelectronic device determines that the difference between the currentsystem time and the time of the set alarm is less than the threshold, tobe specific, the time of the set alarm is approaching, the electronicdevice may display the interface element used to prompt the system timewithin the interface element associated with the camera, to be specific,display the interface element used to prompt the system time within theinterface element in the shape of the capsule encircling the throughhole of the display. If the time of the set alarm has passed, theelectronic device may move the interface element used to prompt thesystem time out of the interface element in the shape of the capsule, tobe specific, display the interface element used to prompt the systemtime out of the interface element associated with the camera. Similarly,another interface element included in the status bar, for example, aninterface element used to prompt a signal condition of a network towhich the electronic device is connected or an interface element used toprompt traffic to the user, may be displayed at different positions ofthe interface element associated with the camera (for example, displayedout of the interface element associated with the camera, or displayedwithin the interface element associated with the camera) in differentsituations. In this way, the user can more intuitively and quickly learnof information that the electronic device wants the user topay-attention to, and the intelligence of human-computer interaction isincreased.

FIG. 11 is a schematic flowchart of a screenshot generating methodaccording to an embodiment of this application. The method may beapplied to an electronic device. The electronic device includes adisplay and hardware such as a camera. A through hole is provided in thedisplay, and the hardware is embedded in the through hole provided inthe display. For example, as shown in FIG. 1, the camera is embedded inthe display.

As shown in FIG. 11, the method may include the following S1101 toS1106.

S1101. The electronic device displays a home screen on the display,where the home screen includes an icon of a first application program.

S1102. The electronic device receives an operation performed by a useron the icon of the first application program.

For example, when the user wants to use the first application program,the user may perform a tapping operation on the icon of the firstapplication program displayed on the home screen.

S1103. The electronic device displays an interface of the firstapplication program on the display, in response to the operationperformed by the user on the icon of the first application program.

For example, after receiving the operation performed by the user on theicon of the first application program, the electronic device may displaythe interface, such as a home interface, of the first applicationprogram on the display.

S1104. The electronic device receives a screen capturing operationperformed by the user.

In a process of using the electronic device, if the user is interestedin an interface displayed on the display of the electronic device, suchas the interface of the first application program, and wants to savecontent in the currently displayed interface, the user may use a screencapturing function of the mobile phone and store, in a form of ascreenshot, the content that the user wants to save. The user mayperform a screen capturing operation to trigger the electronic device toenable the screen capturing function.

The foregoing screen capturing operation may be an operation performedby the user on a functional key (for example, a volume control key: avolume “+” key or a volume “−” key, or a power key), or a combination offunctional keys (for example, a combination of the volume “+” key andthe power key), or may be an operation performed by the user on avirtual key of the electronic device, or may be a preset gesture enteredby the user, such as a double tapping gesture.

S1105. The electronic device draws a screenshot of the interface of thefirst application program in response to the screen capturing operation,and automatically adds an image corresponding to the first applicationprogram to a position that is in the screenshot of the interface of thefirst application program and that corresponds to the through hole.

The image corresponding to the first application program may be the iconof the first application program or may be a part of the icon of thefirst application program.

S1106. The electronic device displays the screenshot that includes theimage corresponding to the first application program.

After receiving the foregoing screen capturing operation, the electronicdevice may draw a screenshot. A specific screenshot drawing method isimplemented by the prior art, for example, Canvas or SVG. Details arenot described herein again.

The screenshot is a screenshot of the interface of the first applicationprogram shown in S1103. Because the through hole is provided in thedisplay, a position of the through hole displays no content in the viewof the user. If the position that corresponds to the through hole andthat is in the screenshot includes content, the user may mistakenlyconsider that a fault occurs in the electronic device. In thisembodiment, when the screenshot is drawn, the image corresponding to thefirst application program is automatically added to the positioncorresponding to the through hole of the display, for example, a part ofthe icon of the first application program is used as the image and isadded to the screenshot.

For example, with reference to FIG. 12, an example in which the firstapplication program is WeChat is used. As shown in FIG. 12(a), theelectronic device displays a home screen 1201, where the home screenincludes an icon 1202 of WeChat. As shown in FIG. 12(b), when the userwants to use WeChat, the user may perform a tapping operation on theicon 1202 of WeChat. In addition, to alleviate the abruptness of thecamera in the interface displayed on the display, the display positionencircling the through hole of the display includes a first interfaceelement, for example, a color ring. As shown in FIG. 12(c), in responseto the lapping operation performed by the user on the icon 1202 ofWeChat the electronic device displays an interface 1203 of WeChat on thedisplay, where the interface 1203 of WeChat includes a status bar, and adisplay position encircling the through hole of the display in thestatus bar includes a first interface element 1204, for example, thecolor ring. A camera 1205 is disposed in the through hole of thedisplay. When the user wants to save, in a form of a screenshot, contentcurrently displayed on the display, the user may perform a screencapturing operation, for example, pressing the volume “+” key and thepower key of the electronic device simultaneously. In response to thescreen capturing operation, the electronic device may generate ascreenshot of the interface of WeChat, and automatically add an imagecorresponding to WeChat to a position corresponding to the through holeof the display. The electronic device may display a screenshot 1206including the image corresponding to WeChat. For example, the screenshot1206 is shown in FIG. 12(d). A partial enlarged view of the positionthat corresponds to the through hole and that is in the screenshot 1206shown in FIG. 12(d) is shown in FIG. 12(e). As shown in FIG. 12(e), theposition that corresponds to the through hole provided in the displayand that is in the screenshot 1206 includes an image 1207, where theimage 1207 is a part of the icon of WeChat.

In some embodiments, for a second application program in the electronicdevice, the home screen of the electronic device may further include anicon of the second application program. The user may further perform anoperation on the icon of the second application program, so that theelectronic device can display an interface of the second applicationprogram on the display. When the user is interested in the interface ofthe second application program, the user may also perform a screencapturing operation, and at this time, in response to the screencapturing operation, the electronic device may draw a screenshot of theinterface of the second application program, and automatically add animage corresponding to the second application program to the positionthat corresponds to the through hole and that is in the screenshot ofthe interface of the second application program, and a screenshotincluding the image is finally displayed. For example, the secondapplication program is Alipay, the electronic device may generate ascreenshot of the interface of Alipay, and may automatically add animage corresponding to Alipay, for example, an image including a word“Alipay” in the icon of Alipay, to the position corresponding to thethrough hole of the display. That is, a position that corresponds to thethrough hole of the display and that is in the finally displayedscreenshot includes the image corresponding to Alipay.

In some embodiments, when the interface currently displayed on thedisplay of the electronic device is the home screen, after receiving thescreen capturing operation performed by the user, the electronic device,in response to the screen capturing operation, draws a screenshot of thehome screen, and automatically adds a watermark to a position thatcorresponds to the through hole of the display and that is in thescreenshot of the home screen. For example, with reference to FIG. 5 inthe foregoing embodiment, the home screen is currently displayed on thedisplay of the electronic device, and in the status bar included in thehome screen, the display position encircling the through hole of thedisplay includes the first interface element, for example, the colorring. When the user wants to save, in a form of a screenshot, contentcurrently displayed on the display, the user may perform a screencapturing operation. In response to the screen capturing operation, theelectronic device may draw a screenshot of the home screen, andautomatically add a watermark (for example, if the electronic device isa Huawei mobile phone, the watermark is a logo of Huawei) to theposition that corresponds to the through hole of the display and that isin the screenshot of the home screen. For example, a finally displayedscreenshot 1301 is shown in FIG. 13(a). A partial enlarged view of anarea that corresponds to the camera and that is in the screenshot 1301shown in FIG. 13(a) is shown in FIG. 13(b). As shown in FIG. 13(b), theposition that corresponds to the through hole provided in the displayand that is in the screenshot 1301 includes a watermark 1302, where forexample, the watermark 1302 is the logo of Huawei in the figure. Thewatermark may be a watermark related to a brand of the electronicdevice, to increase a feature of the brand.

In some other embodiments, when the home screen currently displayed onthe display includes an interlace element of which a display positionencircles the through hole of the display, and prompt informationincluded in the interface element is prompt information of anapplication program, after the electronic device receives the screencapturing operation performed by the user, the electronic device, inresponse to the screen capturing operation, the electronic devicegenerates a screenshot of the home screen, and automatically adds animage corresponding to the application program to a position thatcorresponds to the through hole and that is in the screenshot of thehome screen.

For example, with reference to FIG. 10 in the foregoing embodiment, thehome screen is currently displayed on the display of the electronicdevice, and in the status bar included in the home screen, the displayposition encircling the through hole of the display includes the secondinterface element, for example, an interface element in a shape of acapsule. The second interface element includes prompt information usedto prompt that the electronic device is currently in a call. The promptinformation is prompt information of a phone application in theelectronic device. When the user wants to save, in a form of ascreenshot, content currently displayed on the display, the user mayperform a screen capturing operation. In response to the screencapturing operation, the electronic device may draw a screenshot of thehome screen, and automatically add an image corresponding the phoneapplication to the position that corresponds to the through hole andthat is in the screenshot of the home screen. The electronic device maydisplay a screenshot 1401 including the image. For example, thescreenshot 1401 is shown in FIG. 14(a). A partial enlarged view of anarea that corresponds to the camera and that is in the screenshot 1401shown in FIG. 14(a) is shown in FIG. 14(b). As shown in FIG. 14(b), theposition that corresponds to the through hole provided in the displayand that is in the screenshot 1401 includes an image 1402. The image1402 is a part of an icon of Phone.

Similarly, when the interface currently displayed on the display is aninterface element of the first application program, the interface of thefirst application program includes an interface element of which adisplay position encircles the through hole of the display, and promptinformation included in the interface element is prompt information ofthe second application program, after receiving the screen capturingoperation performed by the user, the electronic device, in response tothe screen capturing operation, draws a screenshot and automaticallyadds an image corresponding to the second application program, insteadof an image corresponding to the first application program, to theposition that corresponds to the through hole and that is in thescreenshot.

In this way, after receiving the screen capturing operation performed bythe user, the electronic device automatically adds an imagecorresponding to a related application program to the position thatcorresponds to the through hole provided in the display and that is inthe drawn screenshot. The user who views the screenshot can obtain,without a related context, more current system information when thescreen is captured, for example, an application program run when thescreen is captured, or a current mode. A volume of information includedin the screenshot is increased, so that interaction efficiency isimproved, and intelligence of human-computer interaction is increased.

It may be understood that to implement the foregoing functions, theelectronic device includes hardware structures and/or software modulesfor performing the various corresponding functions. A person of ordinaryskill in the art should easily be aware that, in combination with theexamples described in the embodiments disclosed in this specification,units, algorithms, and steps may be implemented by hardware or acombination of hardware and computer software. Whether a function isperformed by hardware or hardware driven by computer software depends onparticular applications and design constraints of the technicalsolutions. A person skilled in the art may use different methods toimplement the described functions for each particular application, butit should not be considered that the implementation goes beyond thescope of the embodiments of this application.

The embodiments of this application further provides an electronicdevice to implement the foregoing methods. Specifically, functionalmodules of the electronic device may be divided. For example, thefunctional modules may be divided corresponding to the functions.Alternatively, two or more functions may be integrated into oneprocessing module. The integrated module may be implemented in a form ofhardware, or may be implemented in a form of a software functionalmodule. It should be noted that, in this embodiment of this application,module division is exemplary, and is merely a logical function division.In actual implementation, another division manner may be used.

When the functional modules are divided according to the correspondingfunctions, FIG. 15 is a possible schematic structural diagram of theelectronic device in the foregoing embodiments. The electronic devicemay include a display unit 1501, an input unit 1502, and a processingunit 1503.

The display unit 1501 is configured to support the electronic device inperforming the displaying operations in S401, S403, and S405 in theforegoing embodiments, S801, S803, S805, S1101, S1103, S1106, and/oranother process used for the technologies described in thisspecification.

The input unit 1502 is configured to receive input, such as touch input,voice input, gesture input, or a floating operation that the userperforms on a displayed interface of the electronic device. For example,the input unit 1502 is configured to support the electronic device inperforming S402, S404, S802, S804, S1102, and S1104 in the foregoingmethod embodiments, and/or another process used for the technologiesdescribed in this specification. The input unit 1502 may be a touchscreen, or other hardware, or a combination of hardware and software.

The processing unit 1503 is configured to support the electronic devicein performing S1105 in the foregoing method embodiment, and/or anotherprocess used for the technologies described in this specification.

For all related content of the steps in the foregoing methodembodiments, refer to function descriptions of corresponding functionalmodules, and details are not described herein again.

Certainly, the electronic device includes but is not limited to theforegoing listed unit modules. In addition, functions that the foregoingfunctional modules can specifically implement include but are notlimited to the functions corresponding to the method steps in theforegoing examples. For detailed descriptions of another unit of theelectronic device, refer to detailed descriptions of method stepscorresponding to the unit, and details are not described herein again inthis embodiment of this application.

When an integrated unit is used, the electronic device in the foregoingembodiments may include a processing module, a storage module, and adisplay module. The processing module is configured to control andmanage an action of the electronic device. The display module isconfigured to display content according to instruction of the processingmodule. The storage module is configured to store program code and dataof the electronic device. Further, the electronic device may include aninput module and a communications module. The communications module isconfigured to support the electronic device in communicating withanother network entity, thereby implementing conversation, dataexchange, Internet accessing, or another function of the electronicdevice.

The processing module may be a processor or a controller. Thecommunications module may be a transceiver, an RF circuit, acommunications interface, or the like. The storage module may be amemory. The display module may be a screen or a monitor. The inputmodule may be a touch screen, a voice input apparatus, a fingerprintsensor, or the like.

When the processing module is a processor, the communications module isthe RF circuit, the storage module is the memory, and the display moduleis the touch screen, the electronic device provided in this embodimentof this application may be the electronic device shown in FIG. 2. Thecommunications module may not only include the RF circuit, and mayfurther include a Wi-Fi module, an NFC module, and a Bluetooth module.The RF circuit, the NFC module, the Wi-Fi module, the Bluetooth module,and another communications module may be collectively referred to ascommunications interfaces. The processor, the RF circuit, the display,and the memory can be coupled together by using a bus.

As shown in FIG. 16, some other embodiments of this application furtherprovide an electronic device. The electronic device may include one ormore processors 1601, a memory 1602, a display 1603, a camera 1604, andone or more computer programs 1605, where the display 1603 is providedwith a through hole, and the camera 1604 is embedded in the throughhole. The foregoing components may be connected by one or morecommunications buses 1606.

The one or more computer programs 1605 are stored in the memory 1602 andare configured to be executed by the one or more processors 1601. Theone or more computer programs 1605 may include instructions, where theinstructions may be used to perform steps in FIG. 4 and a correspondingembodiment. In some other embodiments of this application, theinstructions may alternatively be used to perform steps in FIG. 8 and acorresponding embodiment. In some other embodiments of this application,the instructions may alternatively be used to perform steps in FIG. 11and a corresponding embodiment. Certainly, the electronic deviceincludes but is not limited to the foregoing listed components. Forexample, the foregoing electronic device may further include a radiofrequency circuit, a positioning apparatus, a sensor, and the like. Whenthe electronic device includes another component, the electronic devicemay be the electronic device shown in FIG. 2.

Some other embodiments of this application further provides a computerstorage medium. The computer storage medium stores computer programcode. When the electronic device executes the computer program code, theelectronic device performs related method steps in FIG. 4 or FIG. 8, toimplement the control method in the foregoing embodiments.Alternatively, when the electronic device executes the computer programcode, the electronic device performs related method steps in FIG. 11, toimplement the screenshot generating method in the foregoing embodiments.

Some other embodiments of this application further provides a computerprogram product. When the computer program product is run on a computer,the computer is enabled to perform related method steps in FIG. 4 orFIG. 8, to implement the control method in the foregoing embodiments.Alternatively, when the computer program product is run on a computer,the computer is enabled to perform related method steps in FIG. 11, toimplement the screenshot generating method in the foregoing embodiments.

Some other embodiments of this application further provides a controldevice. The control device includes a processor and a memory. The memoryis configured to store computer program code. The computer program codeincludes a computer instruction. When the processor executes thecomputer instruction, the control device performs related method stepsin FIG. 4 or FIG. 8, to implement the control method in the foregoingembodiments. Alternatively, when the processor executes the computerinstruction, the control device performs related method steps in FIG.11, to implement the screenshot generating method in the foregoingembodiments. The control device may be an integrated circuit IC, or maybe a system on chip SOC. The integrated circuit may be a universalintegrated circuit, or may be a field programmable gate array FPGA, ormay be an application-specific integrated circuit ASIC.

Some other embodiments of this application further provide an apparatus.The apparatus has a function of implementing behavior of the electronicdevice in the foregoing method. The function may be implemented by usinghardware, or may be implemented by using hardware executingcorresponding software. The hardware or the software includes one ormore modules corresponding to the foregoing functions.

The electronic device, the computer storage medium, the computer programproduct, the control device, or the apparatus provided in theembodiments of this application is configured to perform thecorresponding method provided above. Therefore, for beneficial effectsthat can be achieved by the electronic device, the computer storagemedium, the computer program product, the control device, or theapparatus, refer to beneficial effects of the corresponding methodprovided above, and details are not described herein again.

The foregoing descriptions about implementations allow a person skilledin the art to understand that, for the purpose of convenient and briefdescription, division of the foregoing function modules is taken as anexample for illustration. In actual application, the foregoing functionscan be allocated to different modules and implemented according to arequirement, that is, an inner structure of an apparatus is divided intodifferent function modules to implement all or some of the functionsdescribed above. For a detailed working process of the foregoing system,apparatus, and unit, refer to a corresponding process in the foregoingmethod embodiments, and details are not described herein again.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in other manners. For example, the described apparatusembodiment is merely an example. For example, the module or unitdivision is merely logical function division and may be other divisionin actual implementation. For example, a plurality of units orcomponents may be combined or integrated into another system, or somefeatures may be ignored or not performed. In addition, the displayed ordiscussed mutual couplings or direct couplings or communicationconnections may be implemented by using some interfaces. The indirectcouplings or communication connections between the apparatuses or unitsmay be implemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. Some or all of the units may be selected based on actualrequirements to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units are integrated into one unit. Theintegrated unit may be implemented in a form of hardware, or may beimplemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a computer-readable storage medium.Based on such an understanding, the technical solutions of theembodiments of this application essentially, or the part contributing tothe prior art, or all or some of the technical solutions may beimplemented in the form of a software product. The software product isstored in a storage medium and includes several instructions forinstructing a computer device (which may be a personal computer, aserver, or a network device) to perform all or some of the steps of themethods described in the embodiments of this application. The foregoingstorage medium includes: any medium that can store program code, such asa Hash memory, a removable hard disk, a read-only memory, a randomaccess memory, a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of theembodiments of this application, but are not intended to limit theprotection scope of the embodiments of this application. Any variationor replacement within the technical scope disclosed in the embodimentsof this application shall fail within the protection scope of theembodiments of this application. Therefore, the protection scope of theembodiments of this application shall be subject to the protection scopeof the claims.

1.-29. (canceled)
 30. An electronic device comprising: a memoryconfigured to store instructions; a display comprising a through hole; acamera embedded in the through hole; and a processor coupled to thememory, the display, and the camera, wherein the instructions cause theprocessor to be configured to: display a home screen comprising a firsticon of a first application program on the display; receive a firstoperation from a user on the first icon; display, in response to thefirst operation, a first interface of the first application program onthe display; receive a screen capturing operation from the user; draw,in response to the screen capturing operation, a first screenshot of thefirst interface; add a first image corresponding to the firstapplication program to a first position in the first screenshotcorresponding to the through hole; and display the first screenshotcomprising the first image.
 31. The electronic device of claim 30,wherein the home screen further comprises a second icon of a secondapplication program, and wherein the instructions further cause theprocessor to be configured to: receive a second operation from the useron the second icon; display, in response to the second operation, asecond interface of the second application program on the display;receive the screen capturing operation from the user; draw, in responseto the screen capturing operation, a second screenshot of the secondinterface; add a second image corresponding to the second applicationprogram to a second position in the second screenshot corresponding tothe through hole; and display the second screenshot comprising thesecond image.
 32. An electronic device comprising: a memory configuredto store instructions; a display comprising a through hole; a cameraembedded in the through hole; and a processor coupled to the memory, thedisplay, and the camera, wherein the instructions cause the processor tobe configured to: display, on the display, a first interface comprisinga first interface element, wherein a first display position of the firstinterface element encircles the through hole; receive a first operationfrom a user; display, on the display in response to the first operation,a second interface comprising the first interface element, wherein thesecond interface is of a first application program; receive, from theuser, a second operation of enabling a first mode of the firstapplication program; enable, in response to the second operation, thefirst mode; and display, on the second interface, a second interfaceelement and skip displaying the first interface element, wherein thesecond interface element comprises first prompt information promptingthat the first mode is enabled, wherein a second display position of thesecond interface element encircles the through hole, and wherein asecond display area of the second interface element is greater than afirst display area of the first interface element.
 33. The electronicdevice of claim 32, wherein the first application program is a camera,and wherein the first mode is a photographing mode of the camera. 34.The electronic device of claim 32, wherein the instructions furthercause the processor to be configured to change, based on a scenetransition effect, the first interface element displayed in the secondinterface to the second interface element.
 35. The electronic device ofclaim 32, wherein the instructions further cause the processor to beconfigured to: receive, from the user, a third operation of making aphone call; display, on the display in response to the third operation,a call interface comprising the first interface element; receive, fromthe user, a fourth operation; and display, on the display in response tothe fourth operation, a third interface that is different from the callinterface, wherein the third interface comprises a third interfaceelement, wherein the third interface element comprises second promptinformation promoting that the electronic device is currently in a call,wherein a third display position of the third interface elementencircles the through hole, and wherein a third display area of thethird interface element is greater than the first display area.
 36. Theelectronic device of claim 35, wherein the third interface is a homescreen, and wherein the third interface element is in a status bar ofthe third interface.
 37. The electronic device of claim 32, wherein thefirst interface element and the second interface element are in a statusbar.
 38. The electronic device of claim 32, wherein after displaying thefirst interface, the instructions further cause the processor to beconfigured to: receive a screen capturing operation from the user; draw,in response to the screen capturing operation, a screenshot of the firstinterface; add a watermark to a position in the screenshot correspondingto the through hole; and display the screenshot comprising thewatermark.
 39. The electronic device of claim 32, wherein after enablingthe first mode, displaying the second interface element, and skippingdisplaying the first interface element, the instructions further causethe processor to be configured to: receive, from the user, a screencapturing operation; draw, in response to the screen capturingoperation, a screenshot of the second interface; add an imagecorresponding to the first application program to a position in thescreenshot corresponding to the through hole; and display the screenshotcomprising the image.
 40. An electronic device comprising: a memoryconfigured to store instructions; a display comprising a through hole; acamera embedded in the through hole; and a processor coupled to thememory, the display, and the camera, wherein the instructions cause theprocessor to be configured to: display, on the display, a firstinterface comprising a first interface element, wherein a first displayposition of the first interface element encircles the through hole;receive, from a user, a first operation of making a phone call; display,on the display in response to the first operation, a call interfacecomprising the first interface element; receive, from the user, a secondoperation; and display, on the display in response to the secondoperation, a second interface that is different from the call interface,wherein the second interface comprises a second interface element,wherein the second interface element comprises prompt informationpromoting that the electronic device is currently in a call or promptcall duration, wherein a second display position of the second interfaceelement encircles the through hole, and wherein a second display area ofthe second interface element is greater than a first display area of thefirst interface element.
 41. The electronic device of claim 40, whereinthe second interface is a home screen, and wherein the first interfaceelement and the second interface element are in a status bar.
 42. Theelectronic device of claim 40, wherein after displaying the secondinterface, the instructions further cause the processor to be configuredto: receive, from the user, a screen capturing operation; draw, inresponse to the screen capturing operation, a screenshot of the secondinterface; add an image corresponding to a phone to a position in thescreenshot corresponding to the through hole; and display the screenshotcomprising the image corresponding to the phone.
 43. The electronicdevice of claim 40, wherein the second interface is an interface of anapplication program, and wherein the first interface element and thesecond interface element are in a status bar.
 44. The electronic deviceof claim 32, wherein the first application program is a camera, andwherein the first mode is a video recording mode of the camera.
 45. Theelectronic device of claim 32, wherein the first application program isa camera, and wherein the first mode is a scene mode of the camera. 46.The electronic device of claim 35, wherein the third interface is aninterface of an application program, and wherein the third interfaceelement is in a status bar of the third interface.
 47. The electronicdevice of claim 32, wherein the instructions further cause the processorto be configured to: receive, from the user, a third operation of makinga phone call; display, on the display in response to the thirdoperation, a call interface comprising the first interface element;receive, from the user, a fourth operation; and display, on the displayin response to the fourth operation, a third interface that is differentfrom the call interface, wherein the third interface comprises a thirdinterface element, wherein the third interface element comprises secondprompt information prompting a call duration, wherein a third displayposition of the third interface element encircles the through hole, andwherein a third display area of the third interface element is greaterthan the first display area.
 48. The electronic device of claim 47,wherein the third interface is a home screen, and wherein the thirdinterface element is in a status bar of the third interface.
 49. Theelectronic device of claim 47, wherein the third interface is aninterface of an application program, and wherein the third interfaceelement is in a status bar of the third interface.